<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ page isELIgnored="false" %>
<!-- 引入JSTL标签库 -->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- Start of Page Container -->
<div class="page-container">
	<div class="container">
		<div class="row">

			<!-- start of page content -->
			<div class="span8 main-listing">
			<fieldset>
			<legend>查询结果</legend>
				<c:choose>
					<c:when test="${pageing.state}">
					
					<c:forEach items="${pageing.topics}" var="topic">
					<article class="format-standard type-post hentry clearfix">

					<header class="clearfix">

						<h3 class="post-title">
							<a href="topic_findById?topic.topicId=${topic.topicId}">${topic.title }</a>
						</h3>

						<div class="post-meta clearfix">
							<span class="date">${topic.createDate}</span> <span class="category"><a
								href="#" title="View all posts in Server &amp; Database">Server
									&amp; Database</a></span> <span class="comments"><a href="#"
								title="Comment on 整合WordPress与您的网站">3 Comments</a></span> <span
								class="like-count">66</span>
						</div>
						<!-- end of post meta -->

					</header>

					<p>
						${topic.content}. . . <a class="readmore-link"
							href="#">显示更多</a>
					</p>

				</article>
				</c:forEach>
				<div id="pagination">
					<a class="btn">总页数: ${pageing.total}</a>,
					<a class="btn">当前第 ${pageing.page} 页</a>,
					<c:if test="${pageing.page > 1}">
						<a href="${pageing.actionName}?pageing.keyword=${pageing.keyword}&pageing.page=${(pageing.page-1)}&pageing.operate=S&pageing.total=${pageing.total}" class="btn">上一页</a>
					</c:if>
					<c:if test="${pageing.page < pageing.total}"> 
						<a href="${pageing.actionName}?pageing.keyword=${pageing.keyword}&pageing.page=${(pageing.page+1)}&pageing.operate=X&pageing.total=${pageing.total}" class="btn">下一页</a>
					</c:if>
				</div>
					</c:when>
					<c:otherwise>
					<center><h2>${pageing.message}<h2></center>
					</c:otherwise>
				</c:choose>
				</fieldset>
			</div>
			<!-- end of page content -->


			<!-- start of sidebar -->
			<aside class="span4 page-sidebar">

				<section class="widget">
					<div class="support-widget">
						<h3 class="title">支持</h3>
						<p class="intro">需要更多的支持吗？如果您没有找到答案，请与我们联系以获得进一步的帮助。</p>
					</div>
				</section>


				<section class="widget">
					<h3 class="title">特色论文</h3>
					<ul class="articles">
						<li class="article-entry standard">
							<h4>
								<a href="single.html">整合WordPress与您的网站</a>
							</h4> <span class="article-meta">25 Feb, 2013 in <a href="#"
								title="View all posts in Server &amp; Database">Server &amp;
									Database</a></span> <span class="like-count">66</span>
						</li>
						<li class="article-entry standard">
							<h4>
								<a href="single.html">网站维护</a>
							</h4> <span class="article-meta">24 Feb, 2013 in <a href="#"
								title="View all posts in Website Dev">Website Dev</a></span> <span
							class="like-count">15</span>
						</li>
						<li class="article-entry video">
							<h4>
								<a href="single.html">WordPress中的元标签</a>
							</h4> <span class="article-meta">23 Feb, 2013 in <a href="#"
								title="View all posts in Website Dev">Website Dev</a></span> <span
							class="like-count">8</span>
						</li>
						<li class="article-entry image">
							<h4>
								<a href="single.html">wordpress在你的语言</a>
							</h4> <span class="article-meta">22 Feb, 2013 in <a href="#"
								title="View all posts in Advanced Techniques">Advanced
									Techniques</a></span> <span class="like-count">6</span>
						</li>
					</ul>
				</section>



				<section class="widget">
					<h3 class="title">类别</h3>
					<ul>
						<li><a href="#" title="Lorem ipsum dolor sit amet,">Advanced
								Techniques</a></li>
						<li><a href="#" title="Lorem ipsum dolor sit amet,">Designing
								in WordPress</a></li>
						<li><a href="#" title="Lorem ipsum dolor sit amet,">Server
								&amp; Database</a></li>
						<li><a href="#" title="Lorem ipsum dolor sit amet, ">Theme
								Development</a></li>
						<li><a href="#" title="Lorem ipsum dolor sit amet,">Website
								Dev</a></li>
						<li><a href="#" title="Lorem ipsum dolor sit amet,">WordPress
								for Beginners</a></li>
						<li><a href="#" title="Lorem ipsum dolor sit amet, ">WordPress
								Plugins</a></li>
					</ul>
				</section>

				<section class="widget">
					<h3 class="title">近期评论</h3>
					<ul id="recentcomments">
						<li class="recentcomments"><a href="#"
							rel="external nofollow" class="url">John Doe</a> on <a href="#">整合WordPress与您的网站</a></li>
						<li class="recentcomments">saqib sarwar on <a href="#">整合WordPress与您的网站</a></li>
						<li class="recentcomments"><a href="#"
							rel="external nofollow" class="url">John Doe</a> on <a href="#">整合WordPress与您的网站</a></li>
						<li class="recentcomments"><a href="#"
							rel="external nofollow" class="url">Mr WordPress</a> on <a
							href="#">Installing WordPress</a></li>
					</ul>
				</section>

			</aside>
			<!-- end of sidebar -->
		</div>
	</div>
</div>
<!-- End of Page Container -->
